package com.example.demo.controller;

import com.example.demo.pojo.UserCourse;
import com.example.demo.service.CourseService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 翁佃峰
 * date:2020/10/28 13:47
 */
@RestController
@RequestMapping("UserCourse")
public class CourseController {
    @Resource
    CourseService courseService;

    @GetMapping("getUserCourseList")
    public List<UserCourse> getUserCourseList() {
        return courseService.getUserCourseList();
    }
}
